<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let money=prompt("班长好多钱")
        if(money>=2000){
            alert('西餐')
        }else if(money>=1500 && money<2000){
            alert("快餐")
        }else if(money>=1000 && money<1500){
            alert("饮料")
        }else if(money>=500 && money<1000){
            alert("棒棒糖")
        }else{
            alert("没钱")
        }
    </script>

</body>
</html>